#ifndef MESSAGEBOX_H_
#define MESSAGEBOX_H_

#include <MAUI/Screen.h>
#include <MAUI/Layout.h>
#include <MAUI/Label.h>

using namespace MAUI;

class MessageBoxListener{
public:
	virtual void actionIndex(int index) = 0;
};

class MessageBox : public Screen
{
	public:
		MessageBox();
		~MessageBox();

		void keyPressEvent(int keyCode, int nativeCode);
		void pointerPressEvent(MAPoint2d point);
		void pointerReleaseEvent(MAPoint2d point);

		void setListener(MessageBoxListener* input);
		void setTitle(String& input);
		//void hide();
	private:
		Layout* mLayout;
		Label* mTitle;
		Widget *softKeys;
		MessageBoxListener *listener;
};


#endif /* MESSAGEBOX_H_ */
